Skip to content

Commit

Permalink
Avoid additional dependencies in debug test
Browse files Browse the repository at this point in the history
  • Loading branch information
ksysoev committed Jul 23, 2023
1 parent 2aa0370 commit 89f8fed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"log"
"net/http/httptest"
"os"
"strings"
"testing"
"time"

"github.com/stretchr/testify/assert"
"golang.org/x/net/websocket"
)

Expand Down Expand Up @@ -444,5 +444,7 @@ func TestDebugLogs(t *testing.T) {
got := scanner.Text()
want := "Connecting to " + url

assert.Contains(t, got, want)
if !strings.Contains(got, want) {
t.Errorf("Expected log to contain %s, but got %s", want, got)
}
}

0 comments on commit 89f8fed

Please sign in to comment.