From 6a901830422c157087b57e627c154e5c5a48fe03 Mon Sep 17 00:00:00 2001 From: mzack Date: Tue, 8 Aug 2023 08:25:45 +0200 Subject: [PATCH] fixing type --- context/context_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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()