GODT-2229: Own the full path for gluon and do not change Database path.

This commit is contained in:
Romain Le Jeune
2023-01-12 13:23:09 +00:00
committed by Leander Beernaert
parent 8d9db83a87
commit 0580842ad2
15 changed files with 285 additions and 72 deletions

View File

@ -67,13 +67,13 @@ func TestVault_Settings_GluonDir(t *testing.T) {
require.False(t, corrupt)
// Check the default gluon dir.
require.Equal(t, "/path/to/gluon", s.GetGluonDir())
require.Equal(t, "/path/to/gluon", s.GetGluonCacheDir())
// Modify the gluon dir.
require.NoError(t, s.SetGluonDir("/tmp/gluon"))
// Check the new gluon dir.
require.Equal(t, "/tmp/gluon", s.GetGluonDir())
require.Equal(t, "/tmp/gluon", s.GetGluonCacheDir())
}
func TestVault_Settings_UpdateChannel(t *testing.T) {