Commit 9faf70dd authored by Jacob Vosmaer's avatar Jacob Vosmaer

Use nanoseconds

parent 2f268ded
...@@ -51,7 +51,7 @@ func TestAllowedPush(t *testing.T) { ...@@ -51,7 +51,7 @@ func TestAllowedPush(t *testing.T) {
t.Logf("%s", out) t.Logf("%s", out)
t.Fatal(err) t.Fatal(err)
} }
branch := fmt.Sprintf("branch-%d", time.Now().Unix()) branch := fmt.Sprintf("branch-%d", time.Now().UnixNano())
branchCmd := exec.Command("git", "branch", branch) branchCmd := exec.Command("git", "branch", branch)
branchCmd.Dir = checkoutDir branchCmd.Dir = checkoutDir
if out, err := branchCmd.CombinedOutput(); err != nil { if out, err := branchCmd.CombinedOutput(); err != nil {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment