Skip to content

Commit

Permalink
bugfix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nathants committed Sep 26, 2024
1 parent f5cc577 commit 3e43eac
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,13 @@ func getTestBucketAndTable() (string, string, string) {
panic("GIT_REMOTE_AWS_TEST_BUCKET")
}
table := os.Getenv("GIT_REMOTE_AWS_TEST_TABLE")
if bucket == "" {
if table == "" {
panic("GIT_REMOTE_AWS_TEST_TABLE")
}
err = os.Setenv("ensure", "y") // git-remote-aws should create dynamodb tables if needed
if err != nil {
panic(err)
}
_, filename, _, _ := runtime.Caller(1)
root := path.Dir(filename)
cmd := exec.Command("go", "build", ".")
Expand Down Expand Up @@ -366,7 +370,7 @@ func TestPushBeforePullShouldFailSha256(t *testing.T) {
}
}

func TestEncryption() {
func TestEncryption(t *testing.T) {
dir, cleanup := newTempdir()
defer cleanup()
runAt(dir, "bash", "-c", "echo hello | git-remote-aws -e > ciphertext")
Expand Down

0 comments on commit 3e43eac

Please sign in to comment.