Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PassTheMayo committed Feb 15, 2025
1 parent 88626d5 commit 504c931
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
run: go vet ./...

- name: Test
run: go test -v ./...
run: go test ./...
2 changes: 1 addition & 1 deletion status/bedrock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func TestBedrock(t *testing.T) {
resp, err := status.Bedrock(context.Background(), "demo.mcstatus.io", util.DefaultBedrockPort)
resp, err := status.Bedrock(context.Background(), "lifesteal.net", util.DefaultBedrockPort)

if err != nil {
t.Fatal(err)
Expand Down
5 changes: 1 addition & 4 deletions status/modern_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@ import (
"context"
"testing"

"github.com/mcstatus-io/mcutil/v4/options"
"github.com/mcstatus-io/mcutil/v4/status"
"github.com/mcstatus-io/mcutil/v4/util"
)

func TestModern(t *testing.T) {
resp, err := status.Modern(context.Background(), "hypixel.net", util.DefaultJavaPort, options.StatusModern{
Debug: true,
})
resp, err := status.Modern(context.Background(), "demo.mcstatus.io", util.DefaultJavaPort)

if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit 504c931

Please sign in to comment.