mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
pkg/util: Check errors (#19832)
* pkg/util: Check errors * pkg/services: DRY up code
This commit is contained in:
@@ -23,7 +23,8 @@ func TestEncoding(t *testing.T) {
|
||||
})
|
||||
|
||||
Convey("When encoding password", t, func() {
|
||||
encodedPassword := EncodePassword("iamgod", "pepper")
|
||||
encodedPassword, err := EncodePassword("iamgod", "pepper")
|
||||
So(err, ShouldBeNil)
|
||||
So(encodedPassword, ShouldEqual, "e59c568621e57756495a468f47c74e07c911b037084dd464bb2ed72410970dc849cabd71b48c394faf08a5405dae53741ce9")
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user