Skip to content

Commit 3ab2617

Browse files
committed
Port tests to new job archive version
1 parent cdd45ce commit 3ab2617

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

internal/api/api_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func setup(t *testing.T) *api.RestApi {
120120
t.Fatal(err)
121121
}
122122

123-
if err := os.WriteFile(filepath.Join(jobarchive, "version.txt"), []byte(fmt.Sprintf("%d", 1)), 0666); err != nil {
123+
if err := os.WriteFile(filepath.Join(jobarchive, "version.txt"), []byte(fmt.Sprintf("%d", 2)), 0666); err != nil {
124124
t.Fatal(err)
125125
}
126126

internal/importer/importer_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func setup(t *testing.T) *repository.JobRepository {
8282
if err := os.Mkdir(jobarchive, 0777); err != nil {
8383
t.Fatal(err)
8484
}
85-
if err := os.WriteFile(filepath.Join(jobarchive, "version.txt"), []byte(fmt.Sprintf("%d", 1)), 0666); err != nil {
85+
if err := os.WriteFile(filepath.Join(jobarchive, "version.txt"), []byte(fmt.Sprintf("%d", 2)), 0666); err != nil {
8686
t.Fatal(err)
8787
}
8888
fritzArchive := filepath.Join(tmpdir, "job-archive", "fritz")

pkg/archive/fsBackend_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func TestInit(t *testing.T) {
4848
if fsa.path != "testdata/archive" {
4949
t.Fail()
5050
}
51-
if version != 1 {
51+
if version != 2 {
5252
t.Fail()
5353
}
5454
if len(fsa.clusters) != 3 || fsa.clusters[1] != "emmy" {
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1
1+
2

0 commit comments

Comments
 (0)