Skip to content

Commit

Permalink
fix: adjust TestParseFromStackTrace
Browse files Browse the repository at this point in the history
  • Loading branch information
nedpals committed Feb 2, 2024
1 parent b9b37f7 commit bbd18c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions errgoengine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ func TestParseFromStackTrace(t *testing.T) {
})

t.Run("FileNotFound", func(t *testing.T) {
currentLang := python.Language
contextData := Setup(currentLang, "main.py", lib.Position{Line: 2})
currentLang := java.Language
contextData := Setup(currentLang, "Test.java", lib.Position{Line: 2})
files := fstest.MapFS{}

err := lib.ParseFromStackTrace(contextData, currentLang, files)
Expand All @@ -135,8 +135,8 @@ func TestParseFromStackTrace(t *testing.T) {
}

// document should not be present
if _, ok := contextData.Documents["main.py"]; ok {
t.Error("main.py document is present")
if _, ok := contextData.Documents["Test.java"]; ok {
t.Error("Test.java document is present")
}
})

Expand Down

0 comments on commit bbd18c4

Please sign in to comment.