Skip to content

Commit

Permalink
Reverting kapprofiler
Browse files Browse the repository at this point in the history
Signed-off-by: Amit Schendel <[email protected]>
  • Loading branch information
amitschendel committed Jan 14, 2024
1 parent d220433 commit fecfc87
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/gammazero/workerpool v1.1.3
github.com/go-openapi/strfmt v0.21.7
github.com/inspektor-gadget/inspektor-gadget v0.23.1
github.com/kubescape/kapprofiler v0.0.44
github.com/kubescape/kapprofiler v0.0.43
github.com/prometheus/alertmanager v0.26.0
github.com/prometheus/client_golang v1.17.0
github.com/stretchr/testify v1.8.4
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/kubescape/kapprofiler v0.0.44 h1:vAroHIYX/INsMG+mJJh/8TvNNp9zRe428rBPmYSnPzs=
github.com/kubescape/kapprofiler v0.0.44/go.mod h1:3YmtBCW5mspDNXlH148xHgbxyHzr1+bIdYU7iLCHfl0=
github.com/kubescape/kapprofiler v0.0.43 h1:fX7wUCg6ggOi7J7UF2/bz2QKqxRAffcgg4vKDmg1nfw=
github.com/kubescape/kapprofiler v0.0.43/go.mod h1:3YmtBCW5mspDNXlH148xHgbxyHzr1+bIdYU7iLCHfl0=
github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=
github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=
github.com/mailru/easyjson v0.7.6/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc=
Expand Down
7 changes: 6 additions & 1 deletion pkg/approfilecache/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package approfilecache

import (
"context"
"log"
"testing"
"time"

Expand Down Expand Up @@ -159,8 +160,12 @@ func TestCacheBasicAnticipateProfile(t *testing.T) {
return
}

log.Printf("Waiting for cache to be updated")

// Wait a second for the cache to be updated
time.Sleep(4 * time.Second)
time.Sleep(1 * time.Second)

log.Printf("Cache: %v", cache.cache)

// Check if the container profile is in the cache
_, err = cache.GetApplicationProfileAccess("nginx", "00000000000000000000000000000000")
Expand Down

0 comments on commit fecfc87

Please sign in to comment.