Skip to content

Commit e260f28

Browse files
Fixes
1 parent ee69361 commit e260f28

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

go/internal/e2e/rpc_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func TestRpc(t *testing.T) {
116116
}
117117

118118
func TestSessionRpc(t *testing.T) {
119-
ctx := testharness.NewE2ETestContext(t)
119+
ctx := testharness.NewTestContext(t)
120120

121121
// session.model.getCurrent is defined in schema but not yet implemented in CLI
122122
t.Run("should call session.RPC.Model.GetCurrent", func(t *testing.T) {

go/types.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ func Bool(v bool) *bool {
6060
return &v
6161
}
6262

63+
// String returns a pointer to the given string value.
64+
// Use for setting optional string parameters in RPC calls.
65+
func String(v string) *string {
66+
return &v
67+
}
68+
6369
// Float64 returns a pointer to the given float64 value.
6470
// Use for setting thresholds: BackgroundCompactionThreshold: Float64(0.80)
6571
func Float64(v float64) *float64 {

0 commit comments

Comments
 (0)