Skip to content

Commit

Permalink
remove some flaky string based tests that are different on my local c…
Browse files Browse the repository at this point in the history
…ompared to CI
  • Loading branch information
Southclaws committed Nov 21, 2023
1 parent 9a7601a commit 9381c67
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions tests/fctx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,30 +171,6 @@ func TestWithMetaDifferentMapAddress(t *testing.T) {
data1 := fctx.Unwrap(err1)
data2 := fctx.Unwrap(err2)

assert.Equal(t,
`&context.valueCtx{
Context: context.backgroundCtx{},
key: fctx.contextKey{},
val: map[string]string{"key1":"value1"},
}`,
pretty.Sprint(ctx1),
"The map from the first context should be left unmodified by the second call to fctx.WithMeta",
)

assert.Equal(t,
`&context.valueCtx{
Context: &context.valueCtx{
Context: context.backgroundCtx{},
key: fctx.contextKey{},
val: map[string]string{"key1":"value1"},
},
key: fctx.contextKey{},
val: map[string]string{"key1":"value1", "key2":"value2"},
}`,
pretty.Sprint(ctx2),
"The second context value should contain both maps and the first only contains the first key-value pair.",
)

assert.Equal(t,
`map[string]string{"key1":"value1"}`,
pretty.Sprint(data1),
Expand Down

0 comments on commit 9381c67

Please sign in to comment.