File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -113,13 +113,8 @@ func TestSnapshot(t *testing.T) {
113
113
snapshot , release := session .Snapshot ()
114
114
defer release ()
115
115
116
- // Test that GetFile returns nil for non-existent file (first call)
117
116
handle := snapshot .GetFile ("/home/projects/TS/p1/nonexistent.ts" )
118
- assert .Check (t , handle == nil , "GetFile should return nil for non-existent file on first call" )
119
-
120
- // Test that GetFile returns nil for non-existent file (second call - triggers the cached path)
121
- handle2 := snapshot .GetFile ("/home/projects/TS/p1/nonexistent.ts" )
122
- assert .Check (t , handle2 == nil , "GetFile should return nil for non-existent file on second call" )
117
+ assert .Check (t , handle == nil , "GetFile should return nil for non-existent file" )
123
118
124
119
// Test that ReadFile returns false for non-existent file
125
120
_ , ok := snapshot .ReadFile ("/home/projects/TS/p1/nonexistent.ts" )
You can’t perform that action at this time.
0 commit comments