@@ -86,17 +86,17 @@ func TestExecTyped(t *testing.T) {
8686 }
8787
8888 c .Run ("JSON" , func (c * qt.C ) {
89- client := newClient (c , codecs.JSONCodec [model.ExampleRequest , model.ExampleResponse ]{}, "EXECRPC_CODEC=json" )
89+ client := newClient (c , codecs.JSONCodec [model.ExampleRequest , model.ExampleResponse ]{})
9090 runBasicTestForClient (c , client )
9191 })
9292
9393 c .Run ("TOML" , func (c * qt.C ) {
94- client := newClient (c , codecs.TOMLCodec [model.ExampleRequest , model.ExampleResponse ]{}, "EXECRPC_CODEC=toml" )
94+ client := newClient (c , codecs.TOMLCodec [model.ExampleRequest , model.ExampleResponse ]{})
9595 runBasicTestForClient (c , client )
9696 })
9797
9898 c .Run ("Gob" , func (c * qt.C ) {
99- client := newClient (c , codecs.GobCodec [model.ExampleRequest , model.ExampleResponse ]{}, "EXECRPC_CODEC=gob" )
99+ client := newClient (c , codecs.GobCodec [model.ExampleRequest , model.ExampleResponse ]{})
100100 runBasicTestForClient (c , client )
101101 })
102102
@@ -109,7 +109,7 @@ func TestExecTyped(t *testing.T) {
109109 Version : 1 ,
110110 Cmd : "go" ,
111111 Args : []string {"run" , "./examples/servers/typed" },
112- Env : []string {"EXECRPC_CODEC=json" , " EXECRPC_SEND_TWO_LOG_MESSAGES=true" },
112+ Env : []string {"EXECRPC_SEND_TWO_LOG_MESSAGES=true" },
113113 Timeout : 4 * time .Second ,
114114 OnMessage : func (msg execrpc.Message ) {
115115 logMessages = append (logMessages , msg )
@@ -128,7 +128,7 @@ func TestExecTyped(t *testing.T) {
128128 })
129129
130130 c .Run ("Error" , func (c * qt.C ) {
131- client := newClient (c , codecs.JSONCodec [model.ExampleRequest , model.ExampleResponse ]{}, "EXECRPC_CODEC=json" , " EXECRPC_CALL_SHOULD_FAIL=true" )
131+ client := newClient (c , codecs.JSONCodec [model.ExampleRequest , model.ExampleResponse ]{}, "EXECRPC_CALL_SHOULD_FAIL=true" )
132132 result , err := client .Execute (model.ExampleRequest {Text : "hello" })
133133 c .Assert (err , qt .IsNil )
134134 c .Assert (result .Err (), qt .IsNotNil )
@@ -160,7 +160,7 @@ func TestExecTyped(t *testing.T) {
160160}
161161
162162func TestExecTypedConcurrent (t * testing.T ) {
163- client := newTestClient (t , codecs.JSONCodec [model.ExampleRequest , model.ExampleResponse ]{}, "EXECRPC_CODEC=json" )
163+ client := newTestClient (t , codecs.JSONCodec [model.ExampleRequest , model.ExampleResponse ]{})
164164 var g errgroup.Group
165165
166166 for i := 0 ; i < 100 ; i ++ {
@@ -195,7 +195,7 @@ func BenchmarkClient(b *testing.B) {
195195 const word = "World"
196196
197197 b .Run ("JSON" , func (b * testing.B ) {
198- client := newTestClient (b , codecs.JSONCodec [model.ExampleRequest , model.ExampleResponse ]{}, "EXECRPC_CODEC=json" )
198+ client := newTestClient (b , codecs.JSONCodec [model.ExampleRequest , model.ExampleResponse ]{})
199199 b .RunParallel (func (pb * testing.PB ) {
200200 for pb .Next () {
201201 _ , err := client .Execute (model.ExampleRequest {Text : word })
@@ -207,7 +207,7 @@ func BenchmarkClient(b *testing.B) {
207207 })
208208
209209 b .Run ("TOML" , func (b * testing.B ) {
210- client := newTestClient (b , codecs.TOMLCodec [model.ExampleRequest , model.ExampleResponse ]{}, "EXECRPC_CODEC=toml" )
210+ client := newTestClient (b , codecs.TOMLCodec [model.ExampleRequest , model.ExampleResponse ]{})
211211 b .RunParallel (func (pb * testing.PB ) {
212212 for pb .Next () {
213213 _ , err := client .Execute (model.ExampleRequest {Text : word })
@@ -219,7 +219,7 @@ func BenchmarkClient(b *testing.B) {
219219 })
220220
221221 b .Run ("Gob" , func (b * testing.B ) {
222- client := newTestClient (b , codecs.GobCodec [model.ExampleRequest , model.ExampleResponse ]{}, "EXECRPC_CODEC=gob" )
222+ client := newTestClient (b , codecs.GobCodec [model.ExampleRequest , model.ExampleResponse ]{})
223223 b .RunParallel (func (pb * testing.PB ) {
224224 for pb .Next () {
225225 _ , err := client .Execute (model.ExampleRequest {Text : word })
0 commit comments