Skip to content

Commit

Permalink
fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamer committed Oct 21, 2021
1 parent c698e31 commit 8133e0c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions x/nft/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func TestTestSuite(t *testing.T) {
suite.Run(t, new(TestSuite))
}

func (s *TestSuite) TestNewClass() {
func (s *TestSuite) TestSaveClass() {
except := nft.Class{
Id: testClassID,
Name: testClassName,
Expand All @@ -56,7 +56,7 @@ func (s *TestSuite) TestNewClass() {
Uri: testClassURI,
UriHash: testClassURIHash,
}
err := s.app.NFTKeeper.NewClass(s.ctx, except)
err := s.app.NFTKeeper.SaveClass(s.ctx, except)
s.Require().NoError(err)

actual, has := s.app.NFTKeeper.GetClass(s.ctx, testClassID)
Expand All @@ -76,7 +76,7 @@ func (s *TestSuite) TestUpdateClass() {
Uri: testClassURI,
UriHash: testClassURIHash,
}
err := s.app.NFTKeeper.NewClass(s.ctx, class)
err := s.app.NFTKeeper.SaveClass(s.ctx, class)
s.Require().NoError(err)

noExistClass := nft.Class{
Expand Down Expand Up @@ -118,7 +118,7 @@ func (s *TestSuite) TestMint() {
Uri: testClassURI,
UriHash: testClassURIHash,
}
err := s.app.NFTKeeper.NewClass(s.ctx, class)
err := s.app.NFTKeeper.SaveClass(s.ctx, class)
s.Require().NoError(err)

expNFT := nft.NFT{
Expand Down Expand Up @@ -164,7 +164,7 @@ func (s *TestSuite) TestBurn() {
Uri: testClassURI,
UriHash: testClassURIHash,
}
err := s.app.NFTKeeper.NewClass(s.ctx, except)
err := s.app.NFTKeeper.SaveClass(s.ctx, except)
s.Require().NoError(err)

expNFT := nft.NFT{
Expand Down Expand Up @@ -212,7 +212,7 @@ func (s *TestSuite) TestUpdate() {
Uri: testClassURI,
UriHash: testClassURIHash,
}
err := s.app.NFTKeeper.NewClass(s.ctx, class)
err := s.app.NFTKeeper.SaveClass(s.ctx, class)
s.Require().NoError(err)

myNFT := nft.NFT{
Expand Down Expand Up @@ -247,7 +247,7 @@ func (s *TestSuite) TestTransfer() {
Uri: testClassURI,
UriHash: testClassURIHash,
}
err := s.app.NFTKeeper.NewClass(s.ctx, class)
err := s.app.NFTKeeper.SaveClass(s.ctx, class)
s.Require().NoError(err)

expNFT := nft.NFT{
Expand Down Expand Up @@ -286,7 +286,7 @@ func (s *TestSuite) TestExportGenesis() {
Uri: testClassURI,
UriHash: testClassURIHash,
}
err := s.app.NFTKeeper.NewClass(s.ctx, class)
err := s.app.NFTKeeper.SaveClass(s.ctx, class)
s.Require().NoError(err)

expNFT := nft.NFT{
Expand Down

0 comments on commit 8133e0c

Please sign in to comment.