mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
client/fs: Skip delete-while-streaming test on win
This commit is contained in:
@@ -1706,6 +1706,9 @@ func TestFS_streamFile_Truncate(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestFS_streamImpl_Delete(t *testing.T) {
|
||||
if runtime.GOOS == "windows" {
|
||||
t.Skip("Windows does not allow us to delete a file while it is open")
|
||||
}
|
||||
t.Parallel()
|
||||
|
||||
c, cleanup := TestClient(t, nil)
|
||||
@@ -1730,7 +1733,11 @@ func TestFS_streamImpl_Delete(t *testing.T) {
|
||||
frames := make(chan *sframer.StreamFrame, 4)
|
||||
go func() {
|
||||
for {
|
||||
frame := <-frames
|
||||
frame, ok := <-frames
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
|
||||
if frame.IsHeartbeat() {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user