tuning_test.go 726 B

1234567891011121314151617181920212223242526
  1. // Copyright (C) 2019 The Syncthing Authors.
  2. //
  3. // This Source Code Form is subject to the terms of the Mozilla Public
  4. // License, v. 2.0. If a copy of the MPL was not distributed with this file,
  5. // You can obtain one at https://mozilla.org/MPL/2.0/.
  6. package config_test
  7. import (
  8. "testing"
  9. "github.com/syncthing/syncthing/lib/config"
  10. "github.com/syncthing/syncthing/lib/db/backend"
  11. )
  12. func TestTuningMatches(t *testing.T) {
  13. if int(config.TuningAuto) != int(backend.TuningAuto) {
  14. t.Error("mismatch for TuningAuto")
  15. }
  16. if int(config.TuningSmall) != int(backend.TuningSmall) {
  17. t.Error("mismatch for TuningSmall")
  18. }
  19. if int(config.TuningLarge) != int(backend.TuningLarge) {
  20. t.Error("mismatch for TuningLarge")
  21. }
  22. }