Skip to content

Commit 83fa490

Browse files
Moving new SpecTest assert to the right place (#173)
1 parent d6114f2 commit 83fa490

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

firebase-firestore/src/test/java/com/google/firebase/firestore/spec/SpecTestCase.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,6 @@ private void specSetUp(JSONObject config) {
227227
throw Assert.fail("The Android client does not support multi-client tests");
228228
}
229229

230-
if (config.optInt("activeClientIndex", 1) != 1) {
231-
throw Assert.fail("The Android client does not support switching clients");
232-
}
233-
234230
initClient();
235231

236232
// Set up internal event tracking for the spec tests.
@@ -741,6 +737,10 @@ private void doRestart() throws Exception {
741737
}
742738

743739
private void doStep(JSONObject step) throws Exception {
740+
if (step.optInt("clientIndex", 0) != 0) {
741+
throw Assert.fail("The Android client does not support switching clients");
742+
}
743+
744744
if (step.has("userListen")) {
745745
doListen(step.getJSONArray("userListen"));
746746
} else if (step.has("userUnlisten")) {

0 commit comments

Comments
 (0)