Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestConcurrentMany2ManyAssociation (0.15 sec)

  1. tests/associations_many2many_test.go

    	var findUser2 User
    	err = DB.Preload("Languages").Where("id = ?", user2.ID).First(&findUser2).Error
    	AssertEqual(t, nil, err)
    	AssertEqual(t, user2, findUser2)
    }
    
    func TestConcurrentMany2ManyAssociation(t *testing.T) {
    	db, err := OpenTestConnection(&gorm.Config{})
    	if err != nil {
    		t.Fatalf("open test connection failed, err: %+v", err)
    	}
    
    	count := 3
    
    	var languages []Language
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sat Jun 10 13:05:19 UTC 2023
    - 13.2K bytes
    - Viewed (0)
Back to top