@@ -55,8 +55,8 @@ func Test_Hook_Execute_V2_Protocol(t *testing.T) {
5555 opts : HookExecOpts {
5656 Hook : HookScript {Name : "happypath" , Command : "echo {}" },
5757 Env : map [string ]string {
58- "batman " : "robin" ,
59- "yin " : "yang" ,
58+ "BATMAN " : "robin hood " ,
59+ "YIN " : "yang" ,
6060 },
6161 Exec : & MockExec {
6262 mockCommand : & MockCommand {
@@ -68,8 +68,8 @@ func Test_Hook_Execute_V2_Protocol(t *testing.T) {
6868 check : func (t * testing.T , response string , err error , mockExec ExecInterface ) {
6969 require .Equal (t , `{"message": "hello world"}` , response )
7070 require .Equal (t , nil , err )
71- require .Contains (t , mockExec .(* MockExec ).mockCommand .Env , `batman=" robin" ` )
72- require .Contains (t , mockExec .(* MockExec ).mockCommand .Env , `yin=" yang" ` )
71+ require .Contains (t , mockExec .(* MockExec ).mockCommand .Env , `BATMAN= robin hood ` )
72+ require .Contains (t , mockExec .(* MockExec ).mockCommand .Env , `YIN= yang` )
7373 },
7474 },
7575 "successful execution with payload > 64kb" : {
@@ -89,8 +89,8 @@ func Test_Hook_Execute_V2_Protocol(t *testing.T) {
8989 check : func (t * testing.T , response string , err error , mockExec ExecInterface ) {
9090 require .Equal (t , sixtyFourKBString , response )
9191 require .Equal (t , nil , err )
92- require .Contains (t , mockExec .(* MockExec ).mockCommand .Env , `batman=" robin" ` )
93- require .Contains (t , mockExec .(* MockExec ).mockCommand .Env , `yin=" yang" ` )
92+ require .Contains (t , mockExec .(* MockExec ).mockCommand .Env , `batman=robin` )
93+ require .Contains (t , mockExec .(* MockExec ).mockCommand .Env , `yin=yang` )
9494 },
9595 },
9696 "successful execution with payload > 512kb" : {
0 commit comments