Skip to content

Commit

Permalink
update test names
Browse files Browse the repository at this point in the history
  • Loading branch information
leohhhn committed Aug 6, 2024
1 parent 3245bd0 commit 6bfd617
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var (
charlie = testutils.TestAddress("charlie")
)

func TestNew(t *testing.T) {
func NewAuthorizable(t *testing.T) {
std.TestSetRealm(std.NewUserRealm(alice))
std.TestSetOrigCaller(alice) // TODO(bug, issue #2371): should not be needed

Expand All @@ -26,7 +26,7 @@ func TestNew(t *testing.T) {
}
}

func TestNewWithAddress(t *testing.T) {
func NewAuthorizableWithAddress(t *testing.T) {
a := NewAuthorizableWithAddress(alice)

got := a.Owner()
Expand All @@ -36,7 +36,7 @@ func TestNewWithAddress(t *testing.T) {
}
}

func TestOnList(t *testing.T) {
func CallerOnAuthList(t *testing.T) {
a := NewAuthorizableWithAddress(alice)
std.TestSetRealm(std.NewUserRealm(alice))
std.TestSetOrigCaller(alice)
Expand All @@ -46,7 +46,7 @@ func TestOnList(t *testing.T) {
}
}

func TestNotOnList(t *testing.T) {
func TestNotCallerOnAuthList(t *testing.T) {
a := NewAuthorizableWithAddress(alice)
std.TestSetRealm(std.NewUserRealm(bob))
std.TestSetOrigCaller(bob)
Expand Down

0 comments on commit 6bfd617

Please sign in to comment.