MCPcopy
hub / github.com/NVIDIA/aistore / Test_MultiStream

Function Test_MultiStream

transport/obj_test.go:241–257  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

239}
240
241func Test_MultiStream(t *testing.T) {
242 tutils.CheckSkip(t, tutils.SkipTestArgs{Long: true})
243
244 tlog.Logf("Duration %v\n", duration)
245 ts := httptest.NewServer(objmux)
246 defer ts.Close()
247
248 wg := &sync.WaitGroup{}
249 netstats := make(map[string]transport.EndpointStats)
250 lock := &sync.Mutex{}
251 for i := 0; i < 16; i++ {
252 wg.Add(1)
253 go streamWriteUntil(t, i, wg, ts, netstats, lock, false /*compress*/, false /*PDU*/)
254 }
255 wg.Wait()
256 compareNetworkStats(t, netstats)
257}
258
259func printNetworkStats(t *testing.T) {
260 netstats, err := transport.GetStats()

Callers

nothing calls this directly

Calls 7

CheckSkipFunction · 0.92
LogfFunction · 0.92
streamWriteUntilFunction · 0.85
compareNetworkStatsFunction · 0.85
CloseMethod · 0.65
AddMethod · 0.65
WaitMethod · 0.65

Tested by

no test coverage detected