File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ func TestRpc(t *testing.T) {
116116}
117117
118118func 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 ) {
Original file line number Diff line number Diff 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)
6571func Float64 (v float64 ) * float64 {
You can’t perform that action at this time.
0 commit comments