Skip to content

Commit ef49af5

Browse files
committed
🙃
1 parent 75ed4f7 commit ef49af5

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

coderd/agentapi/stats_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ func TestUpdateStates(t *testing.T) {
268268
t.Parallel()
269269

270270
var (
271-
db = dbmock.NewMockStore(gomock.NewController(t))
271+
dbM = dbmock.NewMockStore(gomock.NewController(t))
272272
ps = pubsub.NewInMemory()
273273
req = &agentproto.UpdateStatsRequest{
274274
Stats: &agentproto.Stats{
@@ -280,7 +280,7 @@ func TestUpdateStates(t *testing.T) {
280280
AgentFn: func(context.Context) (database.WorkspaceAgent, error) {
281281
return agent, nil
282282
},
283-
Database: db,
283+
Database: dbM,
284284
Pubsub: ps,
285285
StatsBatcher: nil, // should not be called
286286
TemplateScheduleStore: nil, // should not be called

site/src/pages/WorkspacePage/WorkspaceScheduleControls.tsx

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,7 @@ export const WorkspaceScheduleContainer: FC<
5555
<button
5656
data-testid="schedule-icon-button"
5757
onClick={onClickIcon}
58-
css={{
59-
display: "flex",
60-
alignItems: "center",
61-
background: "transparent",
62-
border: 0,
63-
padding: 0,
64-
fontSize: "inherit",
65-
lineHeight: "inherit",
66-
}}
58+
css={styles.scheduleIconButton}
6759
>
6860
{icon}
6961
</button>
@@ -186,7 +178,6 @@ const AutoStopDisplay: FC<AutoStopDisplayProps> = ({
186178
let activity: ReactNode = null;
187179

188180
if (status === "connected") {
189-
console.log("peepeepoopoo");
190181
onClickScheduleIcon = () => setShowControlsAnyway((it) => !it);
191182
activity = <Pill type="active">Connected</Pill>;
192183

@@ -314,6 +305,16 @@ export const shouldDisplayScheduleControls = (
314305
};
315306

316307
const styles = {
308+
scheduleIconButton: {
309+
display: "flex",
310+
alignItems: "center",
311+
background: "transparent",
312+
border: 0,
313+
padding: 0,
314+
fontSize: "inherit",
315+
lineHeight: "inherit",
316+
},
317+
317318
scheduleValue: {
318319
display: "flex",
319320
alignItems: "center",

0 commit comments

Comments
 (0)