MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / TestClientConcurrent

Function TestClientConcurrent

driver/oss/s3_test.go:78–88  ·  view source on GitHub ↗

TestClientConcurrent launches a bunch of goroutines that concurrently work with the S3 client. Note: This test is only executed if the initial connection to S3 works.

(t *testing.T)

Source from the content-addressed store, hash-verified

76//
77// Note: This test is only executed if the initial connection to S3 works.
78func TestClientConcurrent(t *testing.T) {
79 if !checkConnection() {
80 t.Skip("No connection to S3 could be established. Probably not running in a proper test environment.")
81 }
82
83 client := createClient(t, encoding.JSON)
84
85 goroutineCount := 1000
86
87 test.TestConcurrentInteractions(t, goroutineCount, client)
88}
89
90// TestErrors tests some error cases.
91//

Callers

nothing calls this directly

Calls 2

checkConnectionFunction · 0.85
createClientFunction · 0.85

Tested by

no test coverage detected