Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mzack9999 committed Feb 22, 2024
1 parent 3b17530 commit 212326d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions detach/tests/test.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
#!/usr/bin/env bash

# start main go program
pwd
go run detach/tests/main.go

# detached/orphane code `detachedFunc()` is still running and will write "/tmp/detach.test.txt"

sleep 10

if [ -f "/tmp/detach.test.txt" ]; then
echo "ko"
echo "ok"
exit 0
else
echo "ok"
echo "ko"
exit 1
fi

0 comments on commit 212326d

Please sign in to comment.