mirror of
https://github.com/rqlite/rqlite.git
synced 2026-01-25 04:16:26 +00:00
fix minor unreachable code caused by t.Fatal
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
This commit is contained in:
@@ -102,12 +102,12 @@ func Test_MergeQueuedStatements(t *testing.T) {
|
||||
t.Fatalf("statements don't match for test %d", i)
|
||||
}
|
||||
if len(r.flushChans) != len(tt.exp.flushChans) {
|
||||
t.Fatalf("incorrect number of flush channels for test %d", i)
|
||||
for i := range r.flushChans {
|
||||
if r.flushChans[i] != tt.exp.flushChans[i] {
|
||||
t.Fatalf("wrong channel for test %d", i)
|
||||
t.Errorf("wrong channel for test %d", i)
|
||||
}
|
||||
}
|
||||
t.Fatalf("incorrect number of flush channels for test %d", i)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user