File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -774,7 +774,7 @@ func TestConfirm(t *testing.T) {
774774func TestConfirmDeny (t * testing.T ) {
775775 var eventContent string
776776 tools := ToolDef {
777- Instructions : "List the files in the current directory" ,
777+ Instructions : "List the files in the current directory as '.'. If that doesn't work print the word FAIL. " ,
778778 Tools : []string {"sys.exec" },
779779 }
780780
@@ -828,11 +828,11 @@ func TestConfirmDeny(t *testing.T) {
828828 t .Errorf ("Error reading output: %v" , err )
829829 }
830830
831- if ! strings .Contains (strings .ToLower (eventContent ), "authorization error " ) {
831+ if ! strings .Contains (strings .ToLower (eventContent ), "fail " ) {
832832 t .Errorf ("Unexpected event output: %s" , eventContent )
833833 }
834834
835- if ! strings .Contains (strings .ToLower (out ), "authorization error " ) {
835+ if ! strings .Contains (strings .ToLower (out ), "fail " ) {
836836 t .Errorf ("Unexpected output: %s" , out )
837837 }
838838
You can’t perform that action at this time.
0 commit comments