Skip to content

Commit

Permalink
fix hex test
Browse files Browse the repository at this point in the history
  • Loading branch information
bthaile committed Nov 29, 2023
1 parent f95e52d commit 4200c89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flixkit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,14 +288,14 @@ func TestGetFlixByIDRaw(t *testing.T) {
assert := assert.New(t)

server := httptest.NewServer(http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request) {
assert.Equal("/templateID", req.URL.String(), "GetFlixByID should request the correct path")
assert.Equal("/1234567890ABCDEF1234567890ABCDEF1234567890ABCDEF1234567890ABCDEF", req.URL.String(), "GetFlixByID should request the correct path")
rw.Write([]byte("Hello World"))
}))
defer server.Close()

flixService := NewFlixService(&Config{FlixServerURL: server.URL})
ctx := context.Background()
body, err := flixService.GetTemplate(ctx, "templateID")
body, err := flixService.GetTemplate(ctx, "1234567890ABCDEF1234567890ABCDEF1234567890ABCDEF1234567890ABCDEF")
assert.NoError(err, "GetFlixByID should not return an error")
assert.Equal("Hello World", body, "GetFlixByID should return the correct body")
}
Expand Down

0 comments on commit 4200c89

Please sign in to comment.