Skip to content

Commit a6f42b5

Browse files
committed
Fix to run on GHA
Signed-off-by: Victor Chang <[email protected]>
1 parent f576fa6 commit a6f42b5

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

tests/Integration.Test/Drivers/MongoDBDataProvider.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ public MongoDBDataProvider(ISpecFlowOutputHelper outputHelper, Configurations co
5353
_outputHelper = outputHelper ?? throw new ArgumentNullException(nameof(outputHelper));
5454
_configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
5555
_databaseName = databaseName;
56+
57+
_outputHelper.WriteLine($"Connecting to MongoDB at {connectionString}");
5658
_client = new MongoClient(connectionString);
5759
_database = _client.GetDatabase(databaseName);
5860
_infereRequestCollection = _database.GetCollection<InferenceRequest>(nameof(InferenceRequest));

tests/Integration.Test/run.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export VSTEST_HOST_DEBUG=0
1919

2020
export SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
2121
DOCKER_COMPOSE_DIR="$SCRIPT_DIR/../../docker-compose"
22-
RUN_DIR="$DOCKER_COMPOSE_DIR/.run"
2322
TEST_DIR="$SCRIPT_DIR/"
2423
LOG_DIR="${GITHUB_WORKSPACE:-$SCRIPT_DIR}"
2524
BIN_DIR="$TEST_DIR/bin/Release/net6.0"
@@ -48,9 +47,6 @@ function check_status_code() {
4847

4948
function env_setup() {
5049
[ -f $LOG_DIR/run.log ] && info "Deletig existing $LOG_DIR/run.log" && sudo rm $LOG_DIR/run.log
51-
[ -d $RUN_DIR ] && info "Removing $RUN_DIR..." && sudo rm -r $RUN_DIR
52-
mkdir -p $RUN_DIR
53-
5450
[ -d $BIN_DIR ] && info "Removing $BIN_DIR..." && sudo rm -r $BIN_DIR
5551

5652
SHORT=f:,d
@@ -111,9 +107,6 @@ function start_services() {
111107
info "============================================="
112108
docker container ls --format 'table {{.Names}}\t{{.ID}}' | grep igtest-
113109
info "============================================="
114-
115-
sleep 1
116-
sudo chown -R $USER:$USER $RUN_DIR
117110
}
118111

119112
function run_test() {
@@ -143,7 +136,6 @@ function generate_reports() {
143136
}
144137

145138
function save_logs() {
146-
[ -d $RUN_DIR ] && info "Clearning $RUN_DIR..." && sudo rm -r $RUN_DIR
147139
pushd $DOCKER_COMPOSE_DIR
148140
info "Saving service log..."
149141
docker compose -p igtest logs --no-color -t > "$LOG_DIR/services.log"

0 commit comments

Comments
 (0)