mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
test: Fix unit test to use dbfake over databasefake (#6014)
This commit is contained in:
@@ -149,7 +149,7 @@ func TestTelemetry(t *testing.T) {
|
|||||||
// nolint:paralleltest
|
// nolint:paralleltest
|
||||||
func TestTelemetryInstallSource(t *testing.T) {
|
func TestTelemetryInstallSource(t *testing.T) {
|
||||||
t.Setenv("CODER_TELEMETRY_INSTALL_SOURCE", "aws_marketplace")
|
t.Setenv("CODER_TELEMETRY_INSTALL_SOURCE", "aws_marketplace")
|
||||||
db := databasefake.New()
|
db := dbfake.New()
|
||||||
deployment, _ := collectSnapshot(t, db)
|
deployment, _ := collectSnapshot(t, db)
|
||||||
require.Equal(t, "aws_marketplace", deployment.InstallSource)
|
require.Equal(t, "aws_marketplace", deployment.InstallSource)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user