@@ -774,6 +774,7 @@ func TestClusters_UpdateProcessArgs(t *testing.T) {
774774 OplogMinRetentionHours : pointer (100.0 ),
775775 SampleSizeBIConnector : pointer (int64 (5000 )),
776776 SampleRefreshIntervalBIConnector : pointer (int64 (300 )),
777+ TransactionLifetimeLimitSeconds : pointer (int64 (30 )),
777778 }
778779
779780 mux .HandleFunc (fmt .Sprintf ("/api/atlas/v1.0/groups/%s/clusters/%s/processArgs" , groupID , clusterName ), func (w http.ResponseWriter , r * http.Request ) {
@@ -788,6 +789,7 @@ func TestClusters_UpdateProcessArgs(t *testing.T) {
788789 "oplogMinRetentionHours" : float64 (100 ),
789790 "sampleSizeBIConnector" : float64 (5000 ),
790791 "sampleRefreshIntervalBIConnector" : float64 (300 ),
792+ "transactionLifetimeLimitSeconds" : float64 (30 ),
791793 }
792794
793795 jsonBlob := `
@@ -801,7 +803,8 @@ func TestClusters_UpdateProcessArgs(t *testing.T) {
801803 "oplogSizeMB": 2000,
802804 "oplogMinRetentionHours": 100,
803805 "sampleSizeBIConnector": 5000,
804- "sampleRefreshIntervalBIConnector": 300
806+ "sampleRefreshIntervalBIConnector": 300,
807+ "transactionLifetimeLimitSeconds": 30
805808 }
806809 `
807810
@@ -849,7 +852,8 @@ func TestClusters_GetProcessArgs(t *testing.T) {
849852 "noTableScan": true,
850853 "oplogSizeMB": 2000,
851854 "sampleSizeBIConnector": 5000,
852- "sampleRefreshIntervalBIConnector": 300
855+ "sampleRefreshIntervalBIConnector": 300,
856+ "transactionLifetimeLimitSeconds": 30
853857 }` )
854858 })
855859
@@ -868,6 +872,7 @@ func TestClusters_GetProcessArgs(t *testing.T) {
868872 OplogSizeMB : pointer (int64 (2000 )),
869873 SampleSizeBIConnector : pointer (int64 (5000 )),
870874 SampleRefreshIntervalBIConnector : pointer (int64 (300 )),
875+ TransactionLifetimeLimitSeconds : pointer (int64 (30 )),
871876 }
872877
873878 if diff := deep .Equal (processArgs , expected ); diff != nil {
0 commit comments