Skip to content

Commit

Permalink
πŸ›– all: fix context value usage in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
database64128 committed Mar 14, 2024
1 parent d898fe4 commit 7e12621
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tfo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,12 +423,14 @@ func testDialCtrlFn(t *testing.T, d Dialer, address string) {
testRawConnControl(t, c.(syscall.Conn))
}

const (
ctxKey = 64
ctxVal = 128
)

func testDialCtrlCtxFn(t *testing.T, d Dialer, address string) {
type contextKey int

const (
ctxKey = contextKey(64)
ctxVal = 128
)

var success bool

d.ControlContext = func(ctx context.Context, network, address string, c syscall.RawConn) error {
Expand Down

0 comments on commit 7e12621

Please sign in to comment.