Skip to content

Commit 59e70f4

Browse files
committed
Try to revert test changes
1 parent 47a8d78 commit 59e70f4

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

java/integTest/src/test/java/glide/SharedCommandTests.java

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1813,12 +1813,15 @@ public void brpop(BaseClient client) {
18131813

18141814
// nothing popped out
18151815
assertNull(
1816-
client.brpop(new String[] {listKey2}, REDIS_VERSION.isLowerThan("7.0.0") ? 1. : 0.5).get());
1816+
client
1817+
.brpop(new String[] {listKey2}, REDIS_VERSION.isLowerThan("7.0.0") ? 1. : 0.001)
1818+
.get());
18171819

18181820
// Key exists, but it is not a list
18191821
assertEquals(OK, client.set("foo", "bar").get());
18201822
ExecutionException executionException =
1821-
assertThrows(ExecutionException.class, () -> client.brpop(new String[] {"foo"}, 0.5).get());
1823+
assertThrows(
1824+
ExecutionException.class, () -> client.brpop(new String[] {"foo"}, .0001).get());
18221825
assertTrue(executionException.getCause() instanceof RequestException);
18231826
}
18241827

@@ -1863,12 +1866,15 @@ public void blpop(BaseClient client) {
18631866

18641867
// nothing popped out
18651868
assertNull(
1866-
client.blpop(new String[] {listKey2}, REDIS_VERSION.isLowerThan("7.0.0") ? 1. : 0.5).get());
1869+
client
1870+
.blpop(new String[] {listKey2}, REDIS_VERSION.isLowerThan("7.0.0") ? 1. : 0.001)
1871+
.get());
18671872

18681873
// Key exists, but it is not a list
18691874
assertEquals(OK, client.set("foo", "bar").get());
18701875
ExecutionException executionException =
1871-
assertThrows(ExecutionException.class, () -> client.blpop(new String[] {"foo"}, 0.5).get());
1876+
assertThrows(
1877+
ExecutionException.class, () -> client.blpop(new String[] {"foo"}, .0001).get());
18721878
assertTrue(executionException.getCause() instanceof RequestException);
18731879
}
18741880

node/tests/SharedTests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2041,14 +2041,14 @@ export function runBaseTests<Context>(config: {
20412041
await client.rpush("brpop-test", ["foo", "bar", "baz"]),
20422042
).toEqual(3);
20432043
// Test basic usage
2044-
expect(await client.brpop(["brpop-test"], 0.5)).toEqual([
2044+
expect(await client.brpop(["brpop-test"], 0.1)).toEqual([
20452045
"brpop-test",
20462046
"baz",
20472047
]);
20482048
// Delete all values from list
20492049
expect(await client.del(["brpop-test"])).toEqual(1);
20502050
// Test null return when key doesn't exist
2051-
expect(await client.brpop(["brpop-test"], 0.5)).toEqual(null);
2051+
expect(await client.brpop(["brpop-test"], 0.1)).toEqual(null);
20522052
}, protocol);
20532053
},
20542054
config.timeout,

0 commit comments

Comments
 (0)