Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
saragluna committed Oct 17, 2024
1 parent 9e155d9 commit 53baf2a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cli/azd/internal/appdetect/java_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,13 @@ func TestJavaDetector_DetectProject_WithPomXml(t *testing.T) {
mockDirEntry{name: "pom.xml"},
}
tempDir := t.TempDir()
os.WriteFile(filepath.Join(tempDir, "pom.xml"), []byte(`
err := os.WriteFile(filepath.Join(tempDir, "pom.xml"), []byte(`
<project>
</project>`), 0644)
if err != nil {
t.Fatalf("unexpected error: %v", err)
}
project, err := jd.DetectProject(context.Background(), tempDir, entries)
if err != nil {
t.Fatalf("unexpected error: %v", err)
Expand Down Expand Up @@ -56,7 +59,7 @@ func TestJavaDetector_DetectProject_WithSubmodules(t *testing.T) {
<modules>
<module>submodule</module>
</modules>
</project>`), 0644)
</project>`), 0600)
if err != nil {
t.Fatalf("unexpected error: %v", err)
}
Expand All @@ -72,7 +75,7 @@ func TestJavaDetector_DetectProject_WithSubmodules(t *testing.T) {
<artifactId>mysql-connector-j</artifactId>
</dependency>
</dependencies>
</project>`), 0644)
</project>`), 0600)
if err != nil {
t.Fatalf("unexpected error: %v", err)
}
Expand Down

0 comments on commit 53baf2a

Please sign in to comment.