We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea04aa8 commit 880e5d1Copy full SHA for 880e5d1
library/src/androidTest/java/com/qiniu/android/common/AutoZoneTest.java
@@ -90,15 +90,23 @@ public void onFailure(int reason) {
90
fail(reason + "");
91
}
92
});
93
- try {
94
- countDownLatch.await();
95
- } catch (InterruptedException e) {
96
- e.printStackTrace();
+
+ boolean wait = true;
+ while (wait){
97
+ wait = false;
98
99
+ try {
100
+ countDownLatch.await();
101
+ } catch (InterruptedException e) {
102
+ e.printStackTrace();
103
+ wait = true;
104
+ }
105
- ZoneInfo info = autoZone.zoneInfo(ak, bkt);
106
107
+ ZoneInfo info = autoZone.zoneInfo(ak, bkt);
108
ZoneInfo info2 = autoZone.zoneInfo(ak, bkt);
- Assert.assertSame(info, info2);
109
+ assertSame(info, info2);
110
111
112
0 commit comments