Skip to content

Commit

Permalink
improve script
Browse files Browse the repository at this point in the history
  • Loading branch information
jakedoublev committed Aug 27, 2024
1 parent 778a796 commit 75c1d92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/connectivity-test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash

# Randomly drop db connections to test CLI connectivity for 15 minutes total
start_time=$(date +%s)
Expand All @@ -9,7 +9,7 @@ resource_subcommands=("attributes" "attributes namespaces" "subject-mappings" "r
while true; do
# Randomly wait before running the connectivity test (between 1 and 10 seconds)
sleep $((RANDOM % 10 + 1))

echo "Restarting PostgreSQL container..."
docker restart $postgresql_container_id

Expand Down

0 comments on commit 75c1d92

Please sign in to comment.