Skip to content

Commit

Permalink
broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
fanhousanbu committed Apr 21, 2024
1 parent 958c201 commit ddeccfd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/community/storage/migrations/migrate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ func TestMigrate(t *testing.T) {
func TestRollback(t *testing.T) {
var db *gorm.DB

os.Setenv("Evn", "dev")

if testing.Short() {
initTestData()
} else {
Expand Down
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"another_node/conf"
"another_node/internal/community"
"another_node/internal/community/node"
"another_node/internal/community/storage/migrations"
"another_node/internal/web_server/routers"
"strconv"
"strings"
Expand All @@ -25,6 +26,8 @@ func main() {
community.New(n)

Check warning on line 26 in main.go

View check run for this annotation

Codecov / codecov/patch

main.go#L26

Added line #L26 was not covered by tests
}

migrations.AutoMigrate()

Check warning on line 29 in main.go

View check run for this annotation

Codecov / codecov/patch

main.go#L29

Added line #L29 was not covered by tests

// start web server
routers.SetRouters().Run(func(port int) string {
if port == 0 {
Expand Down

0 comments on commit ddeccfd

Please sign in to comment.