diff --git a/gateway/gateway_test.go b/gateway/gateway_test.go index a994471..c6690ed 100644 --- a/gateway/gateway_test.go +++ b/gateway/gateway_test.go @@ -3,11 +3,13 @@ package gateway import ( "context" "log" + "strconv" "strings" "sync" "testing" "time" + "github.com/diamondburned/arikawa/v3/api" "github.com/diamondburned/arikawa/v3/internal/testenv" "github.com/diamondburned/arikawa/v3/utils/ws" ) @@ -150,6 +152,9 @@ func gatewayOpenAndSpin(t *testing.T, ctx context.Context, g *Gateway) { if g.state.SessionID != data.SessionID { t.Fatal("missing SessionID") } + if strconv.Itoa(data.Version) != api.Version { + t.Fatalf("mismatch version, got %d", data.Version) + } log.Println("Bot's username is", data.User.Username) reconnect() case *ResumedEvent: