Skip to content

Commit

Permalink
v.0.20
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolainp committed Oct 15, 2023
1 parent d7ae2c3 commit 3eca6ff
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 18 deletions.
5 changes: 1 addition & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,4 @@ module github.com/nikolainp/toGraph

go 1.20

require (
github.com/go-test/deep v1.1.0
golang.org/x/exp v0.0.0-20231006140011-7918f672742d
)
require github.com/go-test/deep v1.1.0
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
github.com/go-test/deep v1.1.0 h1:WOcxcdHcvdgThNXjw0t76K42FXTU7HpNQWHpA2HHNlg=
github.com/go-test/deep v1.1.0/go.mod h1:5C2ZWiW0ErCdrYzpqxLbTX7MG14M9iiw8DgHncVwcsE=
golang.org/x/exp v0.0.0-20231006140011-7918f672742d h1:jtJma62tbqLibJ5sFQz8bKtEM8rJBtfilJ2qTU199MI=
golang.org/x/exp v0.0.0-20231006140011-7918f672742d/go.mod h1:ldy0pHrwJyGW56pPQzzkH36rKxoZW1tw7ZJpeKx+hdo=
24 changes: 12 additions & 12 deletions statecontext/stateContext_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ package statecontext

import (
"testing"
"time"
// "time"
)

func TestGo(t *testing.T) {
InitState()
t.Run("signal waiting", func(t *testing.T) {
Go(func() {
select {
case <-Done():
case <-time.After(5 * time.Second):
t.Errorf("done not work: overslept")
}
})
//syscall.Kill(syscall.Getpid(), syscall.SIGINT) // stop waiting signal
})
// InitState()
// t.Run("signal waiting", func(t *testing.T) {
// Go(func() {
// select {
// case <-Done():
// case <-time.After(5 * time.Second):
// t.Errorf("done not work: overslept")
// }
// })
// //syscall.Kill(syscall.Getpid(), syscall.SIGINT) // stop waiting signal
// })
}

0 comments on commit 3eca6ff

Please sign in to comment.