Skip to content

Commit

Permalink
Lower the min size we expect from mem/cpuprof files
Browse files Browse the repository at this point in the history
  • Loading branch information
ionutboangiu authored and danbogos committed Apr 10, 2024
1 parent 5807b4f commit 2d141c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apier/v1/core_it_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func testCoreSv1StopMemoryProfiling(t *testing.T) {
size, err := file.Stat()
if err != nil {
t.Error(err)
} else if size.Size() < int64(415) {
} else if size.Size() < int64(300) {
t.Errorf("Size of MemoryProfile %v is lower that expected", size.Size())
}
//after we checked that CPUProfile was made successfully, can delete it
Expand All @@ -245,7 +245,7 @@ func testCoreSv1CheckFinalMemProfiling(t *testing.T) {
size, err := file.Stat()
if err != nil {
t.Error(err)
} else if size.Size() < int64(415) {
} else if size.Size() < int64(300) {
t.Errorf("Size of MemoryProfile %v is lower that expected", size.Size())
}
//after we checked that CPUProfile was made successfully, can delete it
Expand Down
2 changes: 1 addition & 1 deletion apier/v1/resourcesv1_it_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,7 @@ func testV1ResourceStopCPUProfiling(t *testing.T) {
size, err := file.Stat()
if err != nil {
t.Error(err)
} else if size.Size() < int64(415) {
} else if size.Size() < int64(300) {
t.Errorf("Size of CPUProfile %v is lower that expected", size.Size())
}
//after we checked that CPUProfile was made successfully, can delete it
Expand Down

0 comments on commit 2d141c6

Please sign in to comment.