Skip to content

Commit

Permalink
and also oom test
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgajg1134 committed Jul 16, 2024
1 parent 2092799 commit a2c4ffb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/trace/api/api_oom_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func TestOOMKill(t *testing.T) {
conf.Endpoints[0].APIKey = "apikey_2"
conf.WatchdogInterval = time.Millisecond
conf.MaxMemory = 0.1 * 1000 * 1000 // 100KB
conf.ReceiverPort = 8327 // use non-default port to avoid conflict with running agent

r := newTestReceiverFromConfig(conf)
r.Start()
Expand All @@ -58,7 +59,7 @@ func TestOOMKill(t *testing.T) {
wg.Add(1)
go func() {
defer wg.Done()
resp, err := http.Post("http://localhost:8126/v0.4/traces", "application/msgpack", bytes.NewReader(data))
resp, err := http.Post("http://localhost:8327/v0.4/traces", "application/msgpack", bytes.NewReader(data))
if err != nil {
t.Log("Error posting payload", err)
return
Expand Down

0 comments on commit a2c4ffb

Please sign in to comment.