Remove short mode skip from integration tests in datagram, raw, and stream packages

This commit is contained in:
eyedeekay
2025-09-30 17:24:27 -04:00
parent adb3dc6480
commit 753dc9ff89
8 changed files with 0 additions and 87 deletions

View File

@@ -8,10 +8,6 @@ import (
)
func TestDatagramSession_Dial(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
// Create two sessions - one for listener, one for dialer
sam1, keys1 := setupTestSAM(t)
defer sam1.Close()
@@ -66,10 +62,6 @@ func TestDatagramSession_Dial(t *testing.T) {
}
func TestDatagramSession_DialContext(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
// Create two sessions
sam1, keys1 := setupTestSAM(t)
defer sam1.Close()
@@ -117,10 +109,6 @@ func TestDatagramSession_DialContext(t *testing.T) {
}
func TestDatagramSession_DialContext_Timeout(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
sam, keys := setupTestSAM(t)
defer sam.Close()
@@ -161,10 +149,6 @@ func TestDatagramSession_DialContext_Timeout(t *testing.T) {
}
func TestDatagramSession_Dial_ClosedSession(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
sam, keys := setupTestSAM(t)
defer sam.Close()
@@ -191,10 +175,6 @@ func TestDatagramSession_Dial_ClosedSession(t *testing.T) {
}
func TestDatagramSession_NewDialer(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
sam, keys := setupTestSAM(t)
defer sam.Close()

View File

@@ -5,10 +5,6 @@ import (
)
func TestDatagramSession_Listen(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
sam, keys := setupTestSAM(t)
defer sam.Close()
@@ -54,10 +50,6 @@ func TestDatagramSession_Listen(t *testing.T) {
}
func TestDatagramSession_Listen_ClosedSession(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
sam, keys := setupTestSAM(t)
defer sam.Close()

View File

@@ -6,10 +6,6 @@ import (
)
func TestDatagramSession_ConcurrentOperations(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
// Add overall test timeout
timeout := time.After(30 * time.Second)
done := make(chan bool)

View File

@@ -14,9 +14,6 @@ func setupTestSession(t *testing.T) *RawSession {
t.Helper()
// Skip actual I2P connection for unit tests
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
sam, err := common.NewSAM(testSAMAddr)
if err != nil {

View File

@@ -27,9 +27,6 @@ func setupTestSAM(t *testing.T) (*common.SAM, i2pkeys.I2PKeys) {
}
func TestNewRawSession(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
tests := []struct {
name string
@@ -100,9 +97,6 @@ func TestNewRawSession(t *testing.T) {
}
func TestRawSession_Close(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
sam, keys := setupTestSAM(t)
defer sam.Close()
@@ -126,9 +120,6 @@ func TestRawSession_Close(t *testing.T) {
}
func TestRawSession_Addr(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
sam, keys := setupTestSAM(t)
defer sam.Close()
@@ -148,9 +139,6 @@ func TestRawSession_Addr(t *testing.T) {
}
func TestRawSession_NewReader(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
sam, keys := setupTestSAM(t)
defer sam.Close()
@@ -186,9 +174,6 @@ func TestRawSession_NewReader(t *testing.T) {
}
func TestRawSession_NewWriter(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
sam, keys := setupTestSAM(t)
defer sam.Close()
@@ -214,9 +199,6 @@ func TestRawSession_NewWriter(t *testing.T) {
}
func TestRawSession_PacketConn(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
sam, keys := setupTestSAM(t)
defer sam.Close()
@@ -258,9 +240,6 @@ func TestRawAddr_Network(t *testing.T) {
}
func TestRawAddr_String(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
sam, keys := setupTestSAM(t)
defer sam.Close()

View File

@@ -7,9 +7,6 @@ import (
)
func TestStreamSession_Dial(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
sam, keys := setupTestSAM(t)
defer sam.Close()
@@ -34,9 +31,6 @@ func TestStreamSession_Dial(t *testing.T) {
}
func TestStreamSession_DialI2P(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
sam, keys := setupTestSAM(t)
defer sam.Close()
@@ -63,9 +57,6 @@ func TestStreamSession_DialI2P(t *testing.T) {
}
func TestStreamSession_DialContext(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
sam, keys := setupTestSAM(t)
defer sam.Close()

View File

@@ -8,9 +8,6 @@ import (
// TestSessionListenerLifecycle tests that listeners are properly cleaned up when session closes
func TestSessionListenerLifecycle(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
// Create a session
sam, keys := setupTestSAM(t)
@@ -70,9 +67,6 @@ func TestSessionListenerLifecycle(t *testing.T) {
// TestExplicitListenerClose tests that explicitly closing listeners works correctly
func TestExplicitListenerClose(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
// Create a session
sam, keys := setupTestSAM(t)

View File

@@ -27,10 +27,6 @@ func setupTestSAM(t *testing.T) (*common.SAM, i2pkeys.I2PKeys) {
}
func TestNewStreamSession(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
tests := []struct {
name string
id string
@@ -100,10 +96,6 @@ func TestNewStreamSession(t *testing.T) {
}
func TestStreamSession_Close(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
sam, keys := setupTestSAM(t)
defer sam.Close()
@@ -132,10 +124,6 @@ func TestStreamSession_Close(t *testing.T) {
}
func TestStreamSession_Addr(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
sam, keys := setupTestSAM(t)
defer sam.Close()
@@ -154,10 +142,6 @@ func TestStreamSession_Addr(t *testing.T) {
}
func TestStreamSession_ConcurrentOperations(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}
sam, keys := setupTestSAM(t)
defer sam.Close()