Commit adfc504d authored by Nick Craver's avatar Nick Craver

Tests: more fixes, more debugging

parent 7809d6d3
......@@ -236,8 +236,10 @@ public async Task SubscriptionsSurviveMasterSwitchAsync()
Log("B: " + EndPointCollection.ToString(epB));
subA.Publish(channel, "A1");
subB.Publish(channel, "B1");
subA.Ping();
subB.Ping();
Log("SubA ping: " + subA.Ping());
Log("SubB ping: " + subB.Ping());
// If redis is under load due to this suite, it may take a moment to send across.
await Task.Delay(250).ForAwait();
Assert.Equal(2, Interlocked.Read(ref aCount));
Assert.Equal(2, Interlocked.Read(ref bCount));
......
......@@ -124,7 +124,7 @@ public async Task BasicStringGetPerf()
Assert.Equal("some value", asyncVal);
// let's allow 20% async overhead
// But with a floor, since the base can often be zero
Assert.True(asyncTimer.ElapsedMilliseconds <= System.Math.Max(syncTimer.ElapsedMilliseconds * 1.2M, 20));
Assert.True(asyncTimer.ElapsedMilliseconds <= System.Math.Max(syncTimer.ElapsedMilliseconds * 1.2M, 50));
}
}
}
......
......@@ -309,7 +309,7 @@ public void ScriptThrowsErrorInsideTransaction()
Assert.True(muxer.Wait(complete));
Assert.True(a.IsCompleted, a.Status.ToString());
Assert.True(c.IsCompleted);
Assert.True(c.IsCompleted, "State: " + c.Status);
Assert.Equal(1L, a.Result);
Assert.Equal(2L, c.Result);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment