Fix tests

This commit is contained in:
Ingo Oppermann
2023-04-26 09:50:09 +02:00
parent a2dab2682f
commit e45f80ed42
2 changed files with 3 additions and 3 deletions

View File

@@ -55,7 +55,7 @@ func TestScheme(t *testing.T) {
require.False(t, r)
}
func TestPars(t *testing.T) {
func TestParse(t *testing.T) {
u, err := Parse("http://localhost/foobar")
require.NoError(t, err)
require.Equal(t, &URL{

View File

@@ -78,7 +78,7 @@ func TestMaxAge(t *testing.T) {
require.Eventually(t, func() bool {
return cleanfs.Files() == 0
}, 5*time.Second, time.Second)
}, 10*time.Second, time.Second)
cleanfs.WriteFileReader("/chunk_3.ts", strings.NewReader("chunk_3"))
@@ -96,7 +96,7 @@ func TestMaxAge(t *testing.T) {
require.ElementsMatch(t, []string{"/chunk_3.ts"}, names)
return true
}, 2*time.Second, time.Second)
}, 5*time.Second, time.Second)
cleanfs.Stop()
}