diff --git a/server/pifr_server.test.inc b/server/pifr_server.test.inc
index fab991b..e1b1af4 100644
--- a/server/pifr_server.test.inc
+++ b/server/pifr_server.test.inc
@@ -350,7 +350,7 @@ function pifr_server_test_result(array $test, array $result, array $client) {
   if ($test['status'] == PIFR_SERVER_TEST_STATUS_QUEUED) {
     // If this result constitutes the final result (all environments reviewed)
     // then mark the test as complete.
-    if (count($results) == count($environments)) {
+    if (array_diff_key($environments, $results) != array()) {
       $test['status'] = PIFR_SERVER_TEST_STATUS_RESULT;
     }
     else {
