Gitignore: Improve ignoring tests leftovers
License: MIT Signed-off-by: Hector Sanjuan <hector@protocol.ai>
This commit is contained in:
parent
a6b99107ae
commit
0ae9231993
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -3,6 +3,8 @@ ipfs-cluster-service/ipfs-cluster-service
|
|||
ipfs-cluster-ctl/ipfs-cluster-ctl
|
||||
deptools
|
||||
|
||||
raftFolderFromTest*
|
||||
|
||||
# Compiled Object files, Static and Dynamic libs (Shared Objects)
|
||||
*.o
|
||||
*.a
|
||||
|
|
|
@ -26,7 +26,7 @@ var p2pPort = 10000
|
|||
var p2pPortAlt = 11000
|
||||
|
||||
func cleanRaft(port int) {
|
||||
os.RemoveAll(fmt.Sprintf(".raftFolderFromTests%d", port))
|
||||
os.RemoveAll(fmt.Sprintf("raftFolderFromTests%d", port))
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
@ -52,7 +52,7 @@ func testingConsensus(t *testing.T, port int) *Consensus {
|
|||
h := makeTestingHost(t, port)
|
||||
st := mapstate.NewMapState()
|
||||
cc, err := NewConsensus([]peer.ID{h.ID()},
|
||||
h, fmt.Sprintf(".raftFolderFromTests%d", port), st)
|
||||
h, fmt.Sprintf("raftFolderFromTests%d", port), st)
|
||||
if err != nil {
|
||||
t.Fatal("cannot create Consensus:", err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user