Skip to content

Commit

Permalink
drop sleep time bump
Browse files Browse the repository at this point in the history
  • Loading branch information
idoqo committed Sep 12, 2024
1 parent d543410 commit fc65451
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion docker/scripts/setup-pbm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
docker exec -it --user root pbm-mongo-2-1 bash -c "chown -R mongodb /opt/backups"

# PBM config fails if replica sets are not completely up, so give enough time for both replica sets and pbm agents to be up.
sleep 25
sleep 20

docker exec pbm-mongo-2-1 bash -c "pbm config --file /etc/config/pbm.yaml"

Expand Down
8 changes: 0 additions & 8 deletions exporter/pbm_collector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,4 @@ func TestPBMCollector(t *testing.T) {
count := testutil.CollectAndCount(c, filter...)
assert.Equal(t, expectedLength, count, "PBM metrics are missing")
})

t.Run("pbm backup size metric", func(t *testing.T) {
filter := []string{
"mongodb_pbm_backup_size_bytes",
}
count := testutil.CollectAndCount(c, filter...)
assert.Greater(t, count, 0, "PBM metrics are missing")
})
}

0 comments on commit fc65451

Please sign in to comment.