Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GODRIVER-3061 Support Load Balancing in Docker Container #1494

Merged
merged 24 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion etc/docker_entry.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
# Entry point for Dockerfile for launching running a go test.
# Entry point for Dockerfile for running a go test.
#
set -eux

Expand Down
2 changes: 1 addition & 1 deletion mongo/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ func TestClient(t *testing.T) {
if testing.Short() {
t.Skip("skipping integration test in short mode")
}
if len(os.Getenv("DOCKER_RUNNING")) > 0 {
if os.Getenv("DOCKER_RUNNING") != "" {
t.Skip("skipping test in docker environment")
}

Expand Down
2 changes: 1 addition & 1 deletion mongo/with_transactions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func TestConvenientTransactions(t *testing.T) {
if testing.Short() {
t.Skip("skipping integration test in short mode")
}
if len(os.Getenv("DOCKER_RUNNING")) > 0 {
if os.Getenv("DOCKER_RUNNING") != "" {
t.Skip("skipping test in docker environment")
}

Expand Down
4 changes: 2 additions & 2 deletions x/mongo/driver/operation/hello_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func TestAppendClientDriver(t *testing.T) {
func TestAppendClientEnv(t *testing.T) {
clearTestEnv(t)

if len(os.Getenv("DOCKER_RUNNING")) > 0 {
if os.Getenv("DOCKER_RUNNING") != "" {
t.Skip("These tests gives different results when run in Docker due to extra environment data.")
}

Expand Down Expand Up @@ -382,7 +382,7 @@ func TestAppendClientPlatform(t *testing.T) {
func TestEncodeClientMetadata(t *testing.T) {
clearTestEnv(t)

if len(os.Getenv("DOCKER_RUNNING")) > 0 {
if os.Getenv("DOCKER_RUNNING") != "" {
t.Skip("These tests gives different results when run in Docker due to extra environment data.")
}

Expand Down
2 changes: 1 addition & 1 deletion x/mongo/driver/topology/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func TestServerHeartbeatTimeout(t *testing.T) {
if testing.Short() {
t.Skip("skipping integration test in short mode")
}
if len(os.Getenv("DOCKER_RUNNING")) > 0 {
if os.Getenv("DOCKER_RUNNING") != "" {
t.Skip("Skipping this test in docker.")
}

Expand Down
Loading