Use testify

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
Maksym Pavlenko
2022-04-01 18:17:58 -07:00
parent 9766107a53
commit 871b6b6a9f
30 changed files with 356 additions and 362 deletions

View File

@@ -20,7 +20,7 @@ import (
"context"
"testing"
"gotest.tools/v3/assert"
"github.com/stretchr/testify/assert"
)
func TestLoggerContext(t *testing.T) {
@@ -28,5 +28,5 @@ func TestLoggerContext(t *testing.T) {
ctx = WithLogger(ctx, G(ctx).WithField("test", "one"))
assert.Equal(t, GetLogger(ctx).Data["test"], "one")
assert.Equal(t, G(ctx), GetLogger(ctx)) // these should be the same.
assert.Same(t, G(ctx), GetLogger(ctx)) // these should be the same.
}