diff --git a/context/context_test.go b/context/context_test.go index f973611..633e40a 100644 --- a/context/context_test.go +++ b/context/context_test.go @@ -12,7 +12,7 @@ func TestWithValues(t *testing.T) { name string keyValue []ContextArg expectedError error - expectedValue map[string]string + expectedValue map[ContextArg]ContextArg } var testCases = []testCase{ @@ -20,19 +20,19 @@ func TestWithValues(t *testing.T) { name: "even number of key-value pairs", keyValue: []ContextArg{"key1", "value1", "key2", "value2"}, expectedError: nil, - expectedValue: map[string]string{"key1": "value1", "key2": "value2"}, + expectedValue: map[ContextArg]ContextArg{"key1": "value1", "key2": "value2"}, }, { name: "odd number of key-value pairs", keyValue: []ContextArg{"key1", "value1", "key2"}, expectedError: ErrIncorrectNumberOfItems, - expectedValue: map[string]string{}, + expectedValue: map[ContextArg]ContextArg{}, }, { name: "overwriting values", keyValue: []ContextArg{"key1", "value1", "key1", "newValue"}, expectedError: nil, - expectedValue: map[string]string{"key1": "newValue"}, + expectedValue: map[ContextArg]ContextArg{"key1": "newValue"}, }, } ctx := context.Background()