(t *testing.T)
| 861 | |
| 862 | if resolved.Server.FilePersistence { |
| 863 | t.Fatal("expected FilePersistence to be disabled when DataDir is empty") |
| 864 | } |
| 865 | |
| 866 | found := false |
| 867 | for _, w := range warns { |
| 868 | if strings.Contains(w, "file_persistence is enabled but data_dir is empty") { |
| 869 | found = true |
| 870 | break |
| 871 | } |
| 872 | } |
| 873 | if !found { |
| 874 | t.Fatalf("expected warning about empty data_dir, warnings: %v", warns) |
| 875 | } |
| 876 | } |
nothing calls this directly
no test coverage detected