aboutsummaryrefslogtreecommitdiff
path: root/stmutil/context_test.go
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-01-22 12:31:30 -0300
committerEuAndreh <eu@euandre.org>2025-01-22 12:31:30 -0300
commit59d879ef4e654ce53c2450e000ffa435f06c2f0e (patch)
tree05ae996bf799b1e51f891a5586b3b72fa9bdfe3f /stmutil/context_test.go
parentSetup Makefile build skeleton (diff)
downloadstm-59d879ef4e654ce53c2450e000ffa435f06c2f0e.tar.gz
stm-59d879ef4e654ce53c2450e000ffa435f06c2f0e.tar.xz
Unify code into default repo format
Diffstat (limited to 'stmutil/context_test.go')
-rw-r--r--stmutil/context_test.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/stmutil/context_test.go b/stmutil/context_test.go
deleted file mode 100644
index 0a6b7c0..0000000
--- a/stmutil/context_test.go
+++ /dev/null
@@ -1,20 +0,0 @@
-package stmutil
-
-import (
- "context"
- "testing"
-
- "github.com/stretchr/testify/assert"
-)
-
-func TestContextEquality(t *testing.T) {
- ctx := context.Background()
- assert.True(t, ctx == context.Background())
- childCtx, cancel := context.WithCancel(ctx)
- assert.True(t, childCtx != ctx)
- assert.True(t, childCtx != ctx)
- assert.Equal(t, context.Background(), ctx)
- cancel()
- assert.Equal(t, context.Background(), ctx)
- assert.NotEqual(t, ctx, childCtx)
-}