Skip to content

Commit c12d3cc

Browse files
authored
Merge branch 'master' into qvs/LINK-2695
2 parents 2beaccc + 7545a7e commit c12d3cc

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/test/java/test/com/qiniu/streaming/StreamingTest.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,19 @@
55
import static org.junit.jupiter.api.Assertions.assertNotEquals;
66
import static org.junit.jupiter.api.Assertions.assertTrue;
77
import static org.junit.jupiter.api.Assertions.fail;
8+
9+
import org.junit.jupiter.api.Tag;
10+
import org.junit.jupiter.api.Test;
11+
812
import com.qiniu.common.QiniuException;
913
import com.qiniu.streaming.StreamingManager;
1014
import com.qiniu.streaming.model.ActivityRecords;
1115
import com.qiniu.streaming.model.StreamAttribute;
1216
import com.qiniu.streaming.model.StreamListing;
17+
import com.qiniu.streaming.model.StreamStatus;
1318
import com.qiniu.util.Auth;
19+
1420
import test.com.qiniu.TestConfig;
15-
import org.junit.jupiter.api.Tag;
16-
import org.junit.jupiter.api.Test;
1721

1822
/**
1923
* Created by bailong on 16/9/22 Updated by panyuan on 19/3/12
@@ -88,12 +92,8 @@ public void testStreamOperation() throws QiniuException {
8892
assertEquals(0, attr.disabledTill);
8993
assertNotEquals(0, attr.updatedAt);
9094

91-
try {
92-
manager.status(stream);
93-
fail();
94-
} catch (QiniuException e) {
95-
assertEquals(619, e.code());
96-
}
95+
StreamStatus status = manager.status(stream);
96+
assertEquals(0, status.startAt);
9797

9898
try {
9999
manager.saveAs(stream, null, 0, 0);

0 commit comments

Comments
 (0)