diff options
author | Abhinav Gupta <mail@abhinavg.net> | 2021-11-27 16:18:48 -0800 |
---|---|---|
committer | Abhinav Gupta <mail@abhinavg.net> | 2021-11-27 16:39:09 -0800 |
commit | cde3a0d0318303df384d8441c2cc08ca645f8e6a (patch) | |
tree | 3fe69663b5be4ac60424ab07cb1ed3dad4076b38 | |
parent | 07a8bcc71afb5814c00c7a7b19c29b0c493a18fd (diff) | |
download | go-git-cde3a0d0318303df384d8441c2cc08ca645f8e6a.tar.gz |
storage/transactional: Use correct config in test
The `cfg` loaded from `cs.Config` was unused.
It looks like this assertion intended to validate that,
not `temporalCfg`, which was already checked above this block.
-rw-r--r-- | storage/transactional/config_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/transactional/config_test.go b/storage/transactional/config_test.go index 1f3a572..34d7763 100644 --- a/storage/transactional/config_test.go +++ b/storage/transactional/config_test.go @@ -54,7 +54,7 @@ func (s *ConfigSuite) TestSetConfigTemporal(c *C) { cfg, err = cs.Config() c.Assert(err, IsNil) - c.Assert(temporalCfg.Core.Worktree, Equals, "bar") + c.Assert(cfg.Core.Worktree, Equals, "bar") } func (s *ConfigSuite) TestCommit(c *C) { |