build: update to Go 1.18

This commit is contained in:
Olaoluwa Osuntokun
2022-03-15 16:24:42 -07:00
parent 4bdc3c9a5b
commit a90dfff9a5
10 changed files with 10 additions and 10 deletions

View File

@@ -2009,7 +2009,7 @@ func TestDeDuplicatedAnnouncements(t *testing.T) {
// indexes as due to the randomized order of map iteration they may be
// in either place.
if !reflect.DeepEqual(batch[2].msg, na) && !reflect.DeepEqual(batch[3].msg, na) {
t.Fatal("first node announcement not in last part of batch: "+
t.Fatalf("first node announcement not in last part of batch: "+
"got %v, expected %v", batch[2].msg,
na)
}

View File

@@ -2125,7 +2125,7 @@ func TestGossipSyncerSyncTransitions(t *testing.T) {
select {
case msgs := <-msgChan:
if len(msgs) != 1 {
t.Fatal("expected to send a single message at "+
t.Fatalf("expected to send a single message at "+
"a time, got %d", len(msgs))
}
msgSent = msgs[0]