Skip to content

Commit

Permalink
Check error in test
Browse files Browse the repository at this point in the history
  • Loading branch information
keelerm84 committed Sep 17, 2024
1 parent 24ff176 commit 62b0692
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sdktests/testapi_sdk_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
o "github.com/launchdarkly/sdk-test-harness/v2/framework/opt"
"github.com/launchdarkly/sdk-test-harness/v2/mockld"
"github.com/launchdarkly/sdk-test-harness/v2/servicedef"
"github.com/stretchr/testify/require"
)

// SDKDataSource is a test fixture that provides a callback endpoint for SDK clients to connect to,
Expand Down Expand Up @@ -100,7 +101,8 @@ func NewSDKDataSourceWithoutEndpoint(t *ldtest.T, data mockld.SDKData, options .
d.streamingService = mockld.NewStreamingService(data, sdkKind, t.DebugLogger())
}

jsonStr, _ := json.Marshal(data)
jsonStr, err := json.Marshal(data)
require.NoError(t, err)

t.Debug("setting SDK data to: %s", string(jsonStr))

Expand Down

0 comments on commit 62b0692

Please sign in to comment.