mirror of
https://github.com/datarhei/core.git
synced 2025-09-26 12:01:30 +08:00
Fix tests
This commit is contained in:
@@ -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{
|
||||
|
@@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user