Skip to content

Commit

Permalink
fix metadata test
Browse files Browse the repository at this point in the history
  • Loading branch information
asim committed Oct 25, 2019
1 parent 92b7d2d commit 99b410c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions metadata/metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func TestMetadataContext(t *testing.T) {
}
}

func TestAppendContext(t *testing.T) {
func TestMergeContext(t *testing.T) {
type args struct {
existing Metadata
append Metadata
Expand Down Expand Up @@ -74,8 +74,8 @@ func TestAppendContext(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got, _ := FromContext(AppendContext(NewContext(context.TODO(), tt.args.existing), tt.args.append, tt.args.overwrite)); !reflect.DeepEqual(got, tt.want) {
t.Errorf("AppendContext() = %v, want %v", got, tt.want)
if got, _ := FromContext(MergeContext(NewContext(context.TODO(), tt.args.existing), tt.args.append, tt.args.overwrite)); !reflect.DeepEqual(got, tt.want) {
t.Errorf("MergeContext() = %v, want %v", got, tt.want)
}
})
}
Expand Down

0 comments on commit 99b410c

Please sign in to comment.