@@ -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
0 commit comments