From 4200c892ae2b285a97ca76f7fd993a983dcc7b26 Mon Sep 17 00:00:00 2001 From: Tom Haile Date: Wed, 29 Nov 2023 15:04:39 -0600 Subject: [PATCH] fix hex test --- flixkit_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flixkit_test.go b/flixkit_test.go index 77a079f..e99fbfd 100644 --- a/flixkit_test.go +++ b/flixkit_test.go @@ -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") }