Gitignore: Improve ignoring tests leftovers

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
This commit is contained in:
Hector Sanjuan 2017-03-14 14:34:23 +01:00
parent a6b99107ae
commit 0ae9231993
2 changed files with 4 additions and 2 deletions

2
.gitignore vendored
View File

@ -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

View File

@ -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)
}