mirror of
https://github.com/owncast/owncast.git
synced 2024-11-23 05:14:20 +03:00
19 lines
504 B
Go
19 lines
504 B
Go
package config
|
|
|
|
import "testing"
|
|
|
|
func TestDefaults(t *testing.T) {
|
|
_default = getDefaults()
|
|
|
|
encoderPreset := "veryfast"
|
|
framerate := 24
|
|
|
|
quality := StreamQuality{}
|
|
if quality.GetEncoderPreset() != encoderPreset {
|
|
t.Errorf("default encoder preset does not match expected. Got %s, want: %s", quality.GetEncoderPreset(), encoderPreset)
|
|
}
|
|
|
|
if quality.GetFramerate() != framerate {
|
|
t.Errorf("default framerate does not match expected. Got %d, want: %d", quality.GetFramerate(), framerate)
|
|
}
|
|
}
|