Skip to content

Commit

Permalink
Fix force casting
Browse files Browse the repository at this point in the history
  • Loading branch information
matt2e committed Mar 13, 2024
1 parent 832774d commit dddcac7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/model/keys_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ func TestRunnerKey(t *testing.T) {
}
aValue, err := test.key.Value()
assert.NoError(t, err)
value := aValue.(string)
value, ok := aValue.(string)
assert.True(t, ok, "expected string value for %v", aValue)

if test.value != "" {
assert.Equal(t, test.value, value, "expected value %q for %q", test.value, value)
Expand Down

0 comments on commit dddcac7

Please sign in to comment.