build: update to Go 1.18

This commit is contained in:
Olaoluwa Osuntokun committed 2022-04-12 16:14:04 -07:00
1 parent 4bdc3c9a5b
commit a90dfff9a5
10 files changed
+10 -10

No files matched your search

+1 -1
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)
}
+1 -1
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]