Skip to content

Conversation

@xmonader
Copy link
Contributor

@xmonader xmonader commented Jul 22, 2025

Description

Minor refactoring and adding a gorm store test

Checklist

  • Tests included
  • Build pass
  • Documentation
  • Code format and docstring

@xmonader xmonader force-pushed the master_ewf_gorm_store_tests branch from 0aaf607 to fc9e268 Compare July 22, 2025 13:19
@xmonader xmonader force-pushed the master_ewf_gorm_store_tests branch from fc9e268 to 46dbe9c Compare July 22, 2025 13:25
@xmonader xmonader requested a review from AlaaElattar July 22, 2025 13:25

// TestSQLiteStore_SaveAndLoad tests saving and loading a workflow in SQLiteStore.
func TestGormStore_SaveAndLoad(t *testing.T) {
dbFile := "test.db"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use temp dir for db testing file

dbFile := "test.db"

db, err := gorm.Open(sqlite.Open(dbFile), &gorm.Config{})
if err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't we use assert.NoError, what do u think ?

@xmonader xmonader merged commit ffd638e into master_ewf_refactor_gorm Jul 23, 2025
2 checks passed
@AlaaElattar AlaaElattar deleted the master_ewf_gorm_store_tests branch July 23, 2025 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants