2019-08-20 07:41:41 +00:00
|
|
|
// Copyright (C) 2019 The Syncthing Authors.
|
|
|
|
//
|
|
|
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
// You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
|
|
|
|
package config_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/syncthing/syncthing/lib/config"
|
2019-11-29 08:11:52 +00:00
|
|
|
"github.com/syncthing/syncthing/lib/db/backend"
|
2019-08-20 07:41:41 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestTuningMatches(t *testing.T) {
|
2019-11-29 08:11:52 +00:00
|
|
|
if int(config.TuningAuto) != int(backend.TuningAuto) {
|
2019-08-20 07:41:41 +00:00
|
|
|
t.Error("mismatch for TuningAuto")
|
|
|
|
}
|
2019-11-29 08:11:52 +00:00
|
|
|
if int(config.TuningSmall) != int(backend.TuningSmall) {
|
2019-08-20 07:41:41 +00:00
|
|
|
t.Error("mismatch for TuningSmall")
|
|
|
|
}
|
2019-11-29 08:11:52 +00:00
|
|
|
if int(config.TuningLarge) != int(backend.TuningLarge) {
|
2019-08-20 07:41:41 +00:00
|
|
|
t.Error("mismatch for TuningLarge")
|
|
|
|
}
|
|
|
|
}
|