Skip to content

Commit aa6b7a8

Browse files
rfblue2Divjot Arora
authored andcommitted
Sessions test plan.
GODRIVER-52 Change-Id: I6a8bd4ffa33d478bf6df2974e963a6339622f3c0
1 parent e18bcf0 commit aa6b7a8

File tree

4 files changed

+821
-9
lines changed

4 files changed

+821
-9
lines changed

.evergreen/config.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -401,14 +401,14 @@ tasks:
401401
commands:
402402
- func: bootstrap-mongo-orchestration
403403
vars:
404-
topology: "server"
405-
auth: "auth"
406-
ssl: "ssl"
404+
TOPOLOGY: "server"
405+
AUTH: "auth"
406+
SSL: "ssl"
407407
- func: run-tests
408408
vars:
409-
topology: "server"
410-
auth: "auth"
411-
ssl: "ssl"
409+
TOPOLOGY: "server"
410+
AUTH: "auth"
411+
SSL: "ssl"
412412
MONGO_GO_DRIVER_COMPRESSOR: "snappy"
413413

414414
- name: test-replicaset-noauth-nossl

internal/testutil/helpers/helpers.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,14 @@ func IsNil(object interface{}) bool {
4545
// RequireNotNil throws an error if var is nil
4646
func RequireNotNil(t *testing.T, variable interface{}, msgFormat string, msgVars ...interface{}) {
4747
if IsNil(variable) {
48-
t.Errorf(msgFormat, msgVars...)
49-
t.FailNow()
48+
t.Fatalf(msgFormat, msgVars...)
5049
}
5150
}
5251

5352
// RequireNil throws an error if var is not nil
5453
func RequireNil(t *testing.T, variable interface{}, msgFormat string, msgVars ...interface{}) {
5554
if !IsNil(variable) {
56-
t.Errorf(msgFormat, msgVars...)
55+
t.Fatalf(msgFormat, msgVars...)
5756
}
5857
}
5958

mongo/command_monitoring_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import (
1515
"github.com/mongodb/mongo-go-driver/bson"
1616
"github.com/mongodb/mongo-go-driver/core/event"
1717
"github.com/mongodb/mongo-go-driver/core/readpref"
18+
"github.com/mongodb/mongo-go-driver/core/session"
1819
"github.com/mongodb/mongo-go-driver/core/writeconcern"
1920
"github.com/mongodb/mongo-go-driver/internal/testutil"
2021
"github.com/mongodb/mongo-go-driver/internal/testutil/helpers"
@@ -47,6 +48,7 @@ func createMonitoredClient(t *testing.T) *Client {
4748
topology: testutil.MonitoredTopology(t, monitor),
4849
connString: testutil.ConnString(t),
4950
readPreference: readpref.Primary(),
51+
clock: &session.ClusterClock{},
5052
}
5153
}
5254

0 commit comments

Comments
 (0)