Skip to content

Commit

Permalink
fix unittest
Browse files Browse the repository at this point in the history
Signed-off-by: yeya24 <yb532204897@gmail.com>
  • Loading branch information
yeya24 committed May 26, 2019
1 parent 4c732fa commit df75b82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apis/server/image_bridge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ func Test_pullImage_counter(t *testing.T) {
var s Server
ctx := context.Background()

key := fmt.Sprintf(`engine_daemon_image_actions_counter_total{action="%s"}`, "pull")
keySuccess := fmt.Sprintf(`engine_daemon_image_success_actions_counter_total{action="%s"}`, "pull")
key := fmt.Sprintf(`engine_daemon_image_actions_total{action="%s"}`, "pull")
keySuccess := fmt.Sprintf(`engine_daemon_image_success_actions_total{action="%s"}`, "pull")
countBefore, countSuccessBefore := getMetric(ctx, t, &s, key, keySuccess)

ch := make(chan int, 1)
Expand Down

0 comments on commit df75b82

Please sign in to comment.